<?php
$con = '<div class="options-notice">
        <div class="explain">
        Bark是一个iPhone客户端
        </div></div>';
CSF::createSection($prefix, array(
    'parent' => 'basic',
    'title' => 'Bark推送',
    'icon' => 'fa fa-bell-o',
    'description' => '',
    'fields' => array(
        array(
            'type' => 'submessage',
            'style' => 'warning',
            'content' => $con,
        ),
        array(
            'title' => __('开启推送', 'msgbot_language'),
            'id' => 'open_bark',
            'type' => "switcher",
            'default' => false,
        ),
        array(
            'dependency' => array('open_bark', '==', true),
            'title'   => __('Bark秘钥', 'msgbot_language'),
            'id'      => 'bark_key',
            'desc'    => __('', 'msgbot_language'),
            'default' => '',
            'type'    => 'text',
        ),
        array(
            'dependency' => array('open_bark', '==', true),
            'title' => __('评论推送', 'msgbot_language'),
            'id' => 'comment_bark',
            'type' => "switcher",
            'default' => false,
        ),
        array(
            'dependency' => array('open_bark', '==', true),
            'title' => __('用户注册推送', 'msgbot_language'),
            'id' => 'register_bark',
            'type' => "switcher",
            'default' => false,
        ),
    ),
)
);